package com.paneedah.mwc.models;

import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;

public class Shell extends ModelBase
{
  //fields
    ModelRenderer Shell1;
    ModelRenderer Shell2;
    ModelRenderer Shell3;
    ModelRenderer Shell4;
    ModelRenderer Shell5;
    ModelRenderer Shell6;
    ModelRenderer Shell7;
    ModelRenderer Shell8;
    ModelRenderer Shell9;
    ModelRenderer Shell10;
    ModelRenderer Shell11;
    ModelRenderer Shell12;
    ModelRenderer Shell14;
    ModelRenderer Shell15;
    ModelRenderer Shell16;
    ModelRenderer Shell17;
    ModelRenderer Shell18;
    ModelRenderer Shell19;
    ModelRenderer Shell20;
    ModelRenderer Shell21;
    ModelRenderer Shell22;
    ModelRenderer Shell23;
    ModelRenderer Shell24;
    ModelRenderer Shell25;
    ModelRenderer Shell26;
    ModelRenderer Shell27;
    ModelRenderer Shell28;
    ModelRenderer Shell29;
    ModelRenderer Shell30;
    ModelRenderer Shell31;
    ModelRenderer Shell32;
    ModelRenderer Shell33;
    ModelRenderer Shell34;
    ModelRenderer Shell35;
    ModelRenderer Shell36;
    ModelRenderer Shell37;
    ModelRenderer Shell38;
    ModelRenderer Shell39;
    ModelRenderer Shell40;
    ModelRenderer Shell41;
  
  public Shell()
  {
    textureWidth = 256;
    textureHeight = 128;
    
      Shell1 = new ModelRenderer(this, 0, 0);
      Shell1.addBox(0F, 0F, 0F, 1, 12, 1);
      Shell1.setRotationPoint(0F, -9F, 0F);
      Shell1.setTextureSize(64, 32);
      Shell1.mirror = true;
      setRotation(Shell1, 0F, 0F, 0F);
      Shell2 = new ModelRenderer(this, 0, 0);
      Shell2.addBox(0F, 0F, 0F, 1, 12, 1);
      Shell2.setRotationPoint(3F, -9F, 0F);
      Shell2.setTextureSize(64, 32);
      Shell2.mirror = true;
      setRotation(Shell2, 0F, 0F, 0F);
      Shell3 = new ModelRenderer(this, 0, 0);
      Shell3.addBox(0F, 0F, 0F, 1, 12, 1);
      Shell3.setRotationPoint(1.5F, -9F, -1.5F);
      Shell3.setTextureSize(64, 32);
      Shell3.mirror = true;
      setRotation(Shell3, 0F, 0F, 0F);
      Shell4 = new ModelRenderer(this, 0, 0);
      Shell4.addBox(0F, 0F, 0F, 1, 12, 1);
      Shell4.setRotationPoint(1.5F, -9F, 1.5F);
      Shell4.setTextureSize(64, 32);
      Shell4.mirror = true;
      setRotation(Shell4, 0F, 0F, 0F);
      Shell5 = new ModelRenderer(this, 0, 0);
      Shell5.addBox(0F, 0F, 0F, 1, 12, 1);
      Shell5.setRotationPoint(4F, -9F, 1F);
      Shell5.setTextureSize(64, 32);
      Shell5.mirror = true;
      setRotation(Shell5, 0F, -2.156359F, 0F);
      Shell6 = new ModelRenderer(this, 0, 0);
      Shell6.addBox(0F, 0F, 0F, 1, 12, 1);
      Shell6.setRotationPoint(2.5F, -9F, 2.5F);
      Shell6.setTextureSize(64, 32);
      Shell6.mirror = true;
      setRotation(Shell6, 0F, 2.156359F, 0F);
      Shell7 = new ModelRenderer(this, 0, 0);
      Shell7.addBox(0F, 0F, 0F, 1, 12, 1);
      Shell7.setRotationPoint(2.5F, -9F, -1.5F);
      Shell7.setTextureSize(64, 32);
      Shell7.mirror = true;
      setRotation(Shell7, 0F, -0.5948578F, 0F);
      Shell8 = new ModelRenderer(this, 0, 0);
      Shell8.addBox(0F, 0F, 0F, 1, 12, 1);
      Shell8.setRotationPoint(4F, -9F, 0F);
      Shell8.setTextureSize(64, 32);
      Shell8.mirror = true;
      setRotation(Shell8, 0F, -2.565324F, 0F);
      Shell9 = new ModelRenderer(this, 0, 0);
      Shell9.addBox(0F, 0F, 0F, 1, 12, 1);
      Shell9.setRotationPoint(1.5F, -9F, -1.5F);
      Shell9.setTextureSize(64, 32);
      Shell9.mirror = true;
      setRotation(Shell9, 0F, -1.07818F, 0F);
      Shell10 = new ModelRenderer(this, 0, 0);
      Shell10.addBox(0F, 0F, 0F, 1, 12, 1);
      Shell10.setRotationPoint(0F, -9F, 0F);
      Shell10.setTextureSize(64, 32);
      Shell10.mirror = true;
      setRotation(Shell10, 0F, 1.041001F, 0F);
      Shell11 = new ModelRenderer(this, 0, 0);
      Shell11.addBox(0F, 0F, 0F, 1, 12, 1);
      Shell11.setRotationPoint(0F, -9F, 1F);
      Shell11.setTextureSize(64, 32);
      Shell11.mirror = true;
      setRotation(Shell11, 0F, 0.5948578F, 0F);
      Shell12 = new ModelRenderer(this, 0, 0);
      Shell12.addBox(0F, 0F, 0F, 1, 12, 1);
      Shell12.setRotationPoint(1.5F, -9F, 2.5F);
      Shell12.setTextureSize(64, 32);
      Shell12.mirror = true;
      setRotation(Shell12, 0F, 2.565324F, 0F);
      Shell14 = new ModelRenderer(this, 0, 0);
      Shell14.addBox(0F, 0F, 0F, 1, 1, 1);
      Shell14.setRotationPoint(1.5F, 3.5F, -1.5F);
      Shell14.setTextureSize(64, 32);
      Shell14.mirror = true;
      setRotation(Shell14, 0F, 0F, 0F);
      Shell15 = new ModelRenderer(this, 0, 0);
      Shell15.addBox(0F, 0F, 0F, 1, 1, 1);
      Shell15.setRotationPoint(3F, 3.5F, 0F);
      Shell15.setTextureSize(64, 32);
      Shell15.mirror = true;
      setRotation(Shell15, 0F, 0F, 0F);
      Shell16 = new ModelRenderer(this, 0, 0);
      Shell16.addBox(0F, 0F, 0F, 1, 1, 2);
      Shell16.setRotationPoint(1.5F, 3.5F, 2.5F);
      Shell16.setTextureSize(64, 32);
      Shell16.mirror = true;
      setRotation(Shell16, 0F, 2.565324F, 0F);
      Shell17 = new ModelRenderer(this, 0, 0);
      Shell17.addBox(0F, 0F, 0F, 1, 1, 1);
      Shell17.setRotationPoint(0F, 3.5F, 0F);
      Shell17.setTextureSize(64, 32);
      Shell17.mirror = true;
      setRotation(Shell17, 0F, 0F, 0F);
      Shell18 = new ModelRenderer(this, 0, 0);
      Shell18.addBox(0F, 0F, 0F, 2, 1, 1);
      Shell18.setRotationPoint(0F, 3.5F, 1F);
      Shell18.setTextureSize(64, 32);
      Shell18.mirror = true;
      setRotation(Shell18, 0F, 0.5948578F, 0F);
      Shell19 = new ModelRenderer(this, 0, 0);
      Shell19.addBox(0F, 0F, 0F, 1, 1, 1);
      Shell19.setRotationPoint(1.5F, 3.5F, 1.5F);
      Shell19.setTextureSize(64, 32);
      Shell19.mirror = true;
      setRotation(Shell19, 0F, 0F, 0F);
      Shell20 = new ModelRenderer(this, 0, 0);
      Shell20.addBox(0F, 0F, 0F, 2, 1, 1);
      Shell20.setRotationPoint(2.5F, 3.5F, 2.5F);
      Shell20.setTextureSize(64, 32);
      Shell20.mirror = true;
      setRotation(Shell20, 0F, 2.156359F, 0F);
      Shell21 = new ModelRenderer(this, 0, 0);
      Shell21.addBox(0F, 0F, 0F, 1, 1, 2);
      Shell21.setRotationPoint(4F, 3.5F, 1F);
      Shell21.setTextureSize(64, 32);
      Shell21.mirror = true;
      setRotation(Shell21, 0F, -2.156359F, 0F);
      Shell22 = new ModelRenderer(this, 0, 0);
      Shell22.addBox(0F, 0F, 0F, 3, 1, 1);
      Shell22.setRotationPoint(4F, 3.5F, 0F);
      Shell22.setTextureSize(64, 32);
      Shell22.mirror = true;
      setRotation(Shell22, 0F, -2.565324F, 0F);
      Shell23 = new ModelRenderer(this, 0, 0);
      Shell23.addBox(0F, 0F, 0F, 1, 1, 3);
      Shell23.setRotationPoint(2.5F, 3.5F, -1.5F);
      Shell23.setTextureSize(64, 32);
      Shell23.mirror = true;
      setRotation(Shell23, 0F, -0.5948578F, 0F);
      Shell24 = new ModelRenderer(this, 0, 0);
      Shell24.addBox(0F, 0F, 0F, 2, 1, 1);
      Shell24.setRotationPoint(1.5F, 3.5F, -1.5F);
      Shell24.setTextureSize(64, 32);
      Shell24.mirror = true;
      setRotation(Shell24, 0F, -1.07818F, 0F);
      Shell25 = new ModelRenderer(this, 0, 0);
      Shell25.addBox(0F, 0F, 0F, 1, 1, 2);
      Shell25.setRotationPoint(0F, 3.5F, 0F);
      Shell25.setTextureSize(64, 32);
      Shell25.mirror = true;
      setRotation(Shell25, 0F, 1.041001F, 0F);
      Shell26 = new ModelRenderer(this, 0, 0);
      Shell26.addBox(0F, 0F, 0F, 1, 15, 1);
      Shell26.setRotationPoint(0.5F, -11F, 0F);
      Shell26.setTextureSize(64, 32);
      Shell26.mirror = true;
      setRotation(Shell26, 0F, 0F, 0F);
      Shell27 = new ModelRenderer(this, 0, 0);
      Shell27.addBox(0F, 0F, 0F, 1, 15, 1);
      Shell27.setRotationPoint(1.5F, -11F, 1F);
      Shell27.setTextureSize(64, 32);
      Shell27.mirror = true;
      setRotation(Shell27, 0F, 0F, 0F);
      Shell28 = new ModelRenderer(this, 0, 0);
      Shell28.addBox(0F, 0F, 0F, 1, 15, 1);
      Shell28.setRotationPoint(1.5F, -11F, -1F);
      Shell28.setTextureSize(64, 32);
      Shell28.mirror = true;
      setRotation(Shell28, 0F, 0F, 0F);
      Shell29 = new ModelRenderer(this, 0, 0);
      Shell29.addBox(0F, 0F, 0F, 1, 15, 1);
      Shell29.setRotationPoint(2.5F, -11F, 0F);
      Shell29.setTextureSize(64, 32);
      Shell29.mirror = true;
      setRotation(Shell29, 0F, 0F, 0F);
      Shell30 = new ModelRenderer(this, 0, 0);
      Shell30.addBox(0F, 0F, 0F, 1, 15, 1);
      Shell30.setRotationPoint(0.5F, -11F, 1F);
      Shell30.setTextureSize(64, 32);
      Shell30.mirror = true;
      setRotation(Shell30, 0F, 0.8179294F, 0F);
      Shell31 = new ModelRenderer(this, 0, 0);
      Shell31.addBox(0F, 0F, 0F, 1, 15, 1);
      Shell31.setRotationPoint(1.5F, -11F, 2F);
      Shell31.setTextureSize(64, 32);
      Shell31.mirror = true;
      setRotation(Shell31, 0F, 2.379431F, 0F);
      Shell32 = new ModelRenderer(this, 0, 0);
      Shell32.addBox(0F, 0F, 0F, 1, 15, 1);
      Shell32.setRotationPoint(2.5F, -11F, 2F);
      Shell32.setTextureSize(64, 32);
      Shell32.mirror = true;
      setRotation(Shell32, 0F, 2.342252F, 0F);
      Shell33 = new ModelRenderer(this, 0, 0);
      Shell33.addBox(0F, 0F, 0F, 1, 15, 1);
      Shell33.setRotationPoint(3.5F, -11F, 1F);
      Shell33.setTextureSize(64, 32);
      Shell33.mirror = true;
      setRotation(Shell33, 0F, -2.305074F, 0F);
      Shell34 = new ModelRenderer(this, 0, 0);
      Shell34.addBox(0F, 0F, 0F, 1, 15, 1);
      Shell34.setRotationPoint(3.5F, -11F, 0F);
      Shell34.setTextureSize(64, 32);
      Shell34.mirror = true;
      setRotation(Shell34, 0F, -2.342252F, 0F);
      Shell35 = new ModelRenderer(this, 0, 0);
      Shell35.addBox(0F, 0F, 0F, 1, 15, 1);
      Shell35.setRotationPoint(2.5F, -11F, -1F);
      Shell35.setTextureSize(64, 32);
      Shell35.mirror = true;
      setRotation(Shell35, 0F, -0.7807508F, 0F);
      Shell36 = new ModelRenderer(this, 0, 0);
      Shell36.addBox(0F, 0F, 0F, 1, 15, 1);
      Shell36.setRotationPoint(1.5F, -11F, -1F);
      Shell36.setTextureSize(64, 32);
      Shell36.mirror = true;
      setRotation(Shell36, 0F, -0.7807508F, 0F);
      Shell37 = new ModelRenderer(this, 0, 0);
      Shell37.addBox(0F, 0F, 0F, 1, 15, 1);
      Shell37.setRotationPoint(0.5F, -11F, 0F);
      Shell37.setTextureSize(64, 32);
      Shell37.mirror = true;
      setRotation(Shell37, 0F, 0.7807508F, 0F);
      Shell38 = new ModelRenderer(this, 0, 0);
      Shell38.addBox(0F, 0F, 0F, 1, 1, 1);
      Shell38.setRotationPoint(1.5F, -9F, -1.5F);
      Shell38.setTextureSize(64, 32);
      Shell38.mirror = true;
      setRotation(Shell38, 0.4833219F, 0F, 0F);
      Shell39 = new ModelRenderer(this, 0, 0);
      Shell39.addBox(0F, 0F, 0F, 1, 1, 1);
      Shell39.setRotationPoint(0F, -9F, 0F);
      Shell39.setTextureSize(64, 32);
      Shell39.mirror = true;
      setRotation(Shell39, 0F, 0F, -0.4833219F);
      Shell40 = new ModelRenderer(this, 0, 0);
      Shell40.addBox(0F, 0F, 0F, 1, 1, 1);
      Shell40.setRotationPoint(1.5F, -9F, 2.5F);
      Shell40.setTextureSize(64, 32);
      Shell40.mirror = true;
      setRotation(Shell40, -2.082002F, 0F, 0F);
      Shell41 = new ModelRenderer(this, 0, 0);
      Shell41.addBox(0F, 0F, 0F, 1, 1, 1);
      Shell41.setRotationPoint(4F, -9F, 0F);
      Shell41.setTextureSize(64, 32);
      Shell41.mirror = true;
      setRotation(Shell41, 0F, 0F, 2.063413F);
  }
  
  public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
  {
    super.render(entity, f, f1, f2, f3, f4, f5);
    setRotationAngles(f, f1, f2, f3, f4, f5, entity);
    Shell1.render(f5);
    Shell2.render(f5);
    Shell3.render(f5);
    Shell4.render(f5);
    Shell5.render(f5);
    Shell6.render(f5);
    Shell7.render(f5);
    Shell8.render(f5);
    Shell9.render(f5);
    Shell10.render(f5);
    Shell11.render(f5);
    Shell12.render(f5);
    Shell14.render(f5);
    Shell15.render(f5);
    Shell16.render(f5);
    Shell17.render(f5);
    Shell18.render(f5);
    Shell19.render(f5);
    Shell20.render(f5);
    Shell21.render(f5);
    Shell22.render(f5);
    Shell23.render(f5);
    Shell24.render(f5);
    Shell25.render(f5);
    Shell26.render(f5);
    Shell27.render(f5);
    Shell28.render(f5);
    Shell29.render(f5);
    Shell30.render(f5);
    Shell31.render(f5);
    Shell32.render(f5);
    Shell33.render(f5);
    Shell34.render(f5);
    Shell35.render(f5);
    Shell36.render(f5);
    Shell37.render(f5);
    Shell38.render(f5);
    Shell39.render(f5);
    Shell40.render(f5);
    Shell41.render(f5);
  }
  
  private void setRotation(ModelRenderer model, float x, float y, float z)
  {
    model.rotateAngleX = x;
    model.rotateAngleY = y;
    model.rotateAngleZ = z;
  }

}
